package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAllRoles();

    void delete(Integer id);

    PageResult queryPage(QueryPageBean queryPageBean);

    Role findByRoleId(Integer id);

    void edit(Integer[] permissionIds, Role role);

    List<Role> findAllRole();

    void add(Role role, Integer[] permissionIds);
}
